from django.db import models

class Setting(models.Model):
    key = models.CharField(max_length=50,unique=True)
    value = models.CharField(max_length=50)
    
class Interface(models.Model):
    name = models.CharField(max_length=50,unique=True)
    enabled = models.BooleanField(default=False)
    dhcp = models.BooleanField(default=True)
    ip = models.IPAddressField(blank=True,default="0.0.0.0")
    mask = models.IPAddressField(blank=True,default="255.255.255.0")
